package com.onesports.intelligent.k12.polarlight.domain.dto.organization;

import com.onesports.framework.kit.common.valid.Length;
import com.onesports.framework.kit.common.valid.NotEmpty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;



/**
 * 职工信息
 *
 * @author
 * @since 1.0.0 2022-07-08
 */
@Data
@ApiModel(value = "职工信息")
public class OrganizationStaffDTO {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id(修改时传，新增忽略)")
    private String id;

    @ApiModelProperty(value = "姓名",required = true)
    @NotEmpty(message = "姓名不能为空")
    @Length(max = 20,message = "姓名字数不可超过20")
    private String staffName;

    @ApiModelProperty(value = "手机号",required = true)
    @NotEmpty(message = "手机号不能为空")
    @Length(max = 11,message = "手机号不可超过11位")
    private String phone;

    @ApiModelProperty(value = "性别(1:男  2：女)",required = true)
    @NotEmpty(message = "性别不能为空")
    private String gender;

    @ApiModelProperty(value = "账户id",hidden = true)
    private String accountId;

    @ApiModelProperty(value = "团队id",hidden = true)
    private String organizationId;

    @ApiModelProperty(value = "是否负责人",hidden = true)
    private Boolean isPrincipal;

    @ApiModelProperty(value = "身份证",required = true)
    @NotEmpty(message = "身份证不能为空")
    private String idCard;

    @ApiModelProperty(value = "角色(角色id集合)",required = true)
    @NotEmpty(message = "角色不能为空")
    private List<String> roleIds;

    @ApiModelProperty(value = "校区(校区id集合)",required = true)
    @NotEmpty(message = "校区不能为空")
    private List<String> campusIds;

    @ApiModelProperty(value = "员工类型(1：员工，2：教练，3：员工+教练)",hidden = true)
    private String staffType;
}
